package com.lei.adapt;

public class Compute {
    public void connect(SwapVoltage s){
        s.swap();
    }
    public static void main(String[] args) {
        Compute compute = new Compute();
        Adapter adapter = new Adapter(new Source());
        compute.connect(adapter);
    }
}
